<?php

class Welcome extends CI_Controller {
	function __construct(){
		parent::__construct();
		$this->load->helper('url');
		$this->load->helper('form');
	}
	
	function index()
	{
		//autoload.php 里 自动载入url和session
		/*$this->load->helper('form');
		$this->load->library('form_validation');		
		$rules['authcode_input'] = "trim|required|xss_clean";
		$this->form_validation->set_rules($rules);
		$fields['authcode_input'] = '验证码';
		
		
		if ($this->form_validation->run() == FALSE)
		{
			$this->load->view('welcome_message');
		}
		else
		{
			$this->load->library('authcode');
			if ($this->authcode->check($this->input->post('authcode_input')))
			{
				$this->session->set_flashdata('msg','验证码正确。');
				redirect('welcome/index');
			} 
			else 
			{
				$this->session->set_flashdata('msg','验证码错误。');
				redirect('welcome/index');
			}		
		}		*/
		$this->load->view('welcome_message');
	}
}
